package edu.gdkm.ioc;

public class LifeCycle {
    private String name;
    private String age="20";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "LifeCycle{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }

    public LifeCycle(){
        System.out.println("构造方法");
    }
    public void initLifeCycle(){
        System.out.println("初始化对象");
    }
    public void destroyLifeCycle(){
        System.out.println("销毁对象");
    }
}
